package com.itheima.homework.homework06;

public class Test {
    public static void main(String[] args) {
        Feeder feeder = new Feeder();
        Dog d = new Dog(2);
        d.drink();
        d.eat();
        d.swim();

        Frog f = new Frog(3);
        f.drink();
        f.eat();
        f.swim();

        Sheep s = new Sheep(4);
        s.drink();
        s.eat();
    }
}
